package org.jeecg.modules.deal.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.deal.entity.DesReportTable;
import org.jeecg.modules.deal.entity.StatisticsTable;

import java.util.List;

/**
 * @Description: 订阅查询
 * @Author: jeecg-boot
 * @Date: 2019-07-08
 * @Version: V1.0
 */
public interface DesReportTableMapper extends BaseMapper<DesReportTable> {

    IPage<DesReportTable> queryStrategyHasSSc(Page page, @Param("tabId") List<String> tabId,
                                              @Param("fdSchema") String fdSchema,
                                              @Param("fdProNum") String fdProNum);

    IPage<DesReportTable> queryRunDetail(Page page, @Param("tabId") List<String> tabId,
                                         @Param("runDate_begin") String runDate_begin,
                                         @Param("runDate_end") String runDate_end,
                                         @Param("fdTableinfoType") String fdTableinfoType);

    IPage<DesReportTable> queryStrategyTable(Page page, @Param("tabId") List<String> tabId,
                                             @Param("fdSchema") String fdSchema);
//统计报表
    IPage<StatisticsTable> queryStatisticsTable(Page page);
//统计报表已订阅
    List<StatisticsTable> queryStatisticsSubscription(@Param("tabId") List<String> tabId);
    //统计已配置
    List<StatisticsTable> queryAllocationSubscription(@Param("tabId") List<String> tabId);
}
